<?php

FLEA::loadClass('Controller_BaseController');

class Controller_Preferential extends Controller_BaseController
{
	

    function Controller_Preferential() {
        
		$this->table = & FLEA::getSingleton('Table_Preferential');
		
		$dispatcher =& $this->_getDispatcher();
        $user = $dispatcher->getUser();
		if(isset($user['terminal_id'])&&null!=$user['terminal_id'])
			$this->conditions='terminal_id='.$user['terminal_id'].' OR terminal_id IS NULL';

    }
    

	
}    
?>